package com.yc.service;

import com.yc.bean.UserBean;
import com.yc.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zwei
 * @create 2024-10-07 19:08
 */
@Service
public class UserBizImpl implements UserBiz{
    private final UserMapper userMapper;
    @Autowired
    public UserBizImpl(UserMapper userMapper) {
        this.userMapper = userMapper;
    }
    @Override
    public List<UserBean> getuser() {
        List<UserBean> list = userMapper.selectList(null);
        return list;
    }
}
